<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge,chrome=1">
    <meta name="referrer" content="never">
    <title>鲨鱼帧动画</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        ul {
            list-style: none;
        }

        .box {
            width: 516px;
            height: 273px;
            margin: 30px;
            border: 1px solid #f00;
            background: url("../lib/image/HC/shark2.png") no-repeat 0 0/cover;
            animation: up .4s steps(8) infinite;
        }

        @keyframes up {
            0% {
                background-position-y: 0;
            }
            100% {
                background-position-y: calc(-273px * 8);
            }
        }

    </style>
</head>
<body>
    <div class="box"></div>

    <script type="text/javascript">
    </script>
</body>
</html>